<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/fuman/js/order.js"></script>
<script language="javascript">
  function onstsubmit()
	{
		$('#expressform').modal('hide');	
		$('#attributeform').submit();
	}
</script>
<title>订单列表</title>
<body class="withvernav">
<div class="bodywrapper">
{{include file='/public/orderleft.tpl'}}
<div class="centercontent">
<div class="pageheader notab">
  <h1 class="pagetitle">订单错误日志列表</h1>
  <span class="pagedesc">待审查订单，系统缺少SKU信息！需手动添加SKU信息，订单才会重新导入订单列表</span>
  
  
</div>
<!--pageheader-->
<div id="contentwrapper" class="contentwrapper">
<div id="basicform" class="subcontent">
   <!--搜索栏-->
   <div style="float:left">
        <ul class="buttonlist">
          <li>
            <button class="stdbtn btn_red" onClick="changorderstatusPro('order_status',6)">标作废</button>
          </li>
        </ul>
      </div>
       <div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
   </div>
      
    <form class="stdform stdform2" method="get" id="search" action="/orderlist/orderlog">
   

      <div class="tableoptions"> 
    	
      

 		<select name="platformID" id="platformID"  class="selection select2_group" style="width:100px;" onChange="getshopName()" >
        <option value="0" >平台</option>
        {{foreach from=$platform item=li key=key}}
              <option value="{{$li.id}}" {{if $platformID==$li.id}} selected{{/if}}>{{$li.name}}</option>
        {{/foreach}}
        </select>
        <select name="shopID" id="shopname"  class="selection select2_group" style="width:150px;" >
        <option value="" >店铺</option>
        {{foreach from=$d_shop item=li key=key}}
              <option value="{{$li.id}}" {{if $shopID==$li.id}} selected{{/if}}>{{$li.name}}</option>
        {{/foreach}}
        </select>
      
         <select name="st" id="st">
             <option value="">-订单属性-</option>
             <option value="正常订单" {{if $st=='正常订单'}} selected{{/if}}>正常订单</option>
             <option value="手工创建" {{if $st=='手工创建'}} selected{{/if}}>手工创建</option>
             <option value="补发订单" {{if $st=='补发订单'}} selected{{/if}}>补发订单</option>
             <option value="拆分订单" {{if $st=='拆分订单'}} selected{{/if}}>拆分订单</option>
              <option value="手工上传" {{if $st=='手工上传'}} selected{{/if}}>手工上传</option>
             <option value="未收到重发" {{if $st=='未收到重发'}} selected{{/if}}>未收到重发</option>
             <option value="已收到重发" {{if $st=='已收到重发'}} selected{{/if}}>已收到重发</option>
             <option value="部分退款" {{if $st=='部分退款'}} selected{{/if}}>部分退款</option>
             <option value="全额退款" {{if $st=='全额退款'}} selected{{/if}}>全额退款</option>
             <option value="退货订单" {{if $st=='退货订单'}} selected{{/if}}>退货订单</option>
             <option value="即将到期订单" {{if $st=='即将到期订单'}} selected{{/if}}>即将到期订单</option>
				  </select>
  
      </select>        
       <select name="status" id="status">
             <option value="">-状态-</option>
             <option value="1" {{if $status=='1'}} selected{{/if}}>新订单</option>
             <option value="2" {{if $status=='2'}} selected{{/if}}>已支付</option>
             <option value="3" {{if $status=='3'}} selected{{/if}}>配货中</option>
             <option value="4" {{if $status=='4'}} selected{{/if}}>已发货</option>
             <option value="5" {{if $status=='5'}} selected{{/if}}>已完成</option>
             <option value="6" {{if $status=='6'}} selected{{/if}}>作废</option>
		  </select>  
            <select name="expresstype">
            <option value="">-货运方式-</option>
            {{foreach from=$expresstype item=li key=key}}
           		 <option value="{{$li.id}}" {{if $expresstypeID==$li.id}} selected{{/if}}>{{$li.name}}</option>
            {{/foreach}}
			</select>      
       <select name="ty" id="searchtype" class="selection" style="width:100px;" >
        <option value="1" {{if $ty==1}} selected{{/if}}>订单时间</option>
        <option value="2" {{if $ty==2}} selected{{/if}}>导入时间</option>
        <option value="3" {{if $ty==3}} selected{{/if}}>发货时间</option>
      </select>
    
       <input type="text"  name="starttime" value="{{$starttime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" /> - <input type="text"  name="endtime" value="{{$endtime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" />
       <select name="filtertype">
					 <option value="">-查询条件-</option>
					 <option value="order_sn" {{if $filtertype=='order_sn'}} selected{{/if}}>订单编号</option>
					 <option value="tradeid" {{if $filtertype=='tradeid'}} selected{{/if}}>交易单号</option>
					<!-- <option value="sontradeid">子交易单号</option>
					 <option value="transactionid">transactionid</option>-->
					 <option value="productname" {{if $filtertype=='productname'}} selected{{/if}}>商品名称</option>
					 <option value="productid" {{if $filtertype=='productid'}} selected{{/if}}>商品编号</option>
					 <option value="customerid" {{if $filtertype=='customerid'}} selected{{/if}}>买家帐号(精确)</option>
					 <option value="custome" {{if $filtertype=='custome'}} selected{{/if}}>买家帐号</option>
					 <option value="consignee" {{if $filtertype=='consignee'}} selected{{/if}}>客户姓名</option>
					 <option value="email"  {{if $filtertype=='email'}} selected{{/if}}>客户Email</option>
					 <option value="tel" {{if $filtertype=='tel'}} selected{{/if}}>客户电话</option>
					 <option value="paypalmail" {{if $filtertype=='paypalmail'}} selected{{/if}}>Paypal ID</option>
					 <option value="shipping_number" {{if $filtertype=='shipping_number'}} selected{{/if}}>货运单号</option>
					 <option value="country" {{if $filtertype=='country'}} selected{{/if}}>国家(英)</option>
					 <option value="country_cn" {{if $filtertype=='country_cn'}} selected{{/if}}>国家(中)</option>
					 <option value="city"  {{if $filtertype=='city'}} selected{{/if}}>买家城市</option>
					 <option value="zipcode"  {{if $filtertype=='zipcode'}} selected{{/if}}>邮政编码</option>
                      <option value="province"  {{if $filtertype=='province'}} selected{{/if}}>买家洲省</option>
                  </select>:<input type="text" name="kw" id="kw" class="width200" value="{{$kw}}" placeholder="关键词" />
                  
                  
     
     
                           
&nbsp;
        <button class="btn btn-primary" id="searchbtn">Search</button>
     	 <input type='hidden' name='if_csv' id='if_csv'>
    <input type='hidden' name='isow' id='isow'>
    <input type='hidden' name='isno' id='isno'>
    <input type='hidden' name='que' id='que'>
      </div>
      
    
    </form>
    <!--搜索栏结束-->
<table cellpadding="0" cellspacing="0" border="0" class="stdtable" style="table-layout: fixed;">
<thead>
  <tr class="lbbt">
    <td width="3%"  bgcolor="#FEFFF1"><a onClick="allSelect('ppid[]')">全选</a></td>
    <td width="8%" bgcolor="#FEFFF1">订单编号</td>
    <td width="5%" bgcolor="#FEFFF1">状态\订单属性</td>
    <td width="3%" bgcolor="#FEFFF1">延迟</td>
    <td width="10%"  bgcolor="#FEFFF1">店铺/客户/负责人</td>
    <td width="10%" bgcolor="#FEFFF1">原金额/订单金额/总价</td>
    <td width="7%" bgcolor="#FEFFF1">国家/国家(英)</td>
    <td  bgcolor="#FEFFF1">自选物流/货运方式/货运单号</td>
    <td  bgcolor="#FEFFF1" >订单日期/导入日期</td>
    <td  bgcolor="#FEFFF1" >运费/交易号</td>
	<td  bgcolor="#FEFFF1" >客户邮箱/Paypal邮箱</td>
    
  </tr>
</thead>
<tbody >

{{foreach from=$orderlist item=li key=key}}
  <tr>
    <td ><input name="ppid[]" type="checkbox" class="none" id="ppid[]" value="{{$li.order_sn}}" /></td>
    <td valign="middle" style="position:relative;">
     <a href="/orderlist/editorder?order_id={{$li.order_id}}" target="_blank"><font color="#6666FF">{{$li.order_sn}}</font></a>
     <br>
      {{if $li.is_nodelivery==0}}
      <img title="可发货" src="/fuman/images/icons/g_cross_circle.png" alt="" width="16" height="16">
      {{/if}}
      {{if $li.is_nodelivery==1}}
      <img title="禁止发货" src="/fuman/images/icons/cross_circle.png" alt="" width="16" height="16">
     {{/if}}
     
     
      {{if $li.is_que==1}} 
      <img title="缺货" src="/fuman/images/icons/alertflag.png" alt="">
      {{/if}}
      {{if $li.is_que==2}} 
      <img title="不缺货" src="/fuman/images/icons/g_alertflag.png" alt="">
      {{/if}}
   	{{if $li.is_overweight==1}}
    <img title="超重" src="/fuman/images/icons/orderweight.png" alt="">
    {{/if}}
   {{if $li.is_overweight==2}}
   <img title="不超重" src="/fuman/images/icons/g_orderweight.png" alt="">
   {{/if}}
   
   
    <img src="/fuman/images/icons/g_mail.png" title="无买家Message信息" border="0"> 
    
    
    {{if $li.platform_message}}
    <img  src="/fuman/images/icons/ebaynote.png" title="{{$li.platform_message}}"> 
    {{else}}
    <img title="无平台留言" src="/fuman/images/icons/g_ebaynote.png" alt=""> 
    {{/if}}
    
    
    {{if $li.remark}}
    <img src="/fuman/images/icons/content.png" title="{{$li.remark}}">
    {{else}}
    <img title="无备注" src="/fuman/images/icons/g_content.png" alt="">
    {{/if}}
    
     </td>
    <td valign="middle"><img src="/fuman/images/icons/flag_{{$li.order_status}}.gif">{{$li.statustext}}<br>{{$li.order_source}}</td>
     <td valign="middle">{{$li.numday}}天</td>
    
    <td style="position:relative;">
   
      <div style="margin-left:2px;">{{$li.shopname}}({{$li.shopoper}})
     <br>{{$li.customerid}}
    </div>
     
      <div class="lbcp">
      </div>
   </td>
    <td valign="middle">{{$li.moneytype}} {{$li.goods_originask}}<br>RMB {{$li.goods_amount}}<br>RMB {{$li.goods_total}} </td>
    <td valign="middle">{{$li.country}}<br>{{$li.country_cn}}</td>
    <td class="cz">{{$li.postageservice}}<br>{{$li.shipping_name}}<br>{{$li.shipping_number}}</td>
    <td class="cz">{{$li.ordertime}}<br>{{$li.add_time}}</td>
   	<td class="cz">{{if $li.shipping_fee=='0.00'}}{{else}}<font color="#FF0000">{{$li.shipping_fee}}</font>{{/if}}<br>{{$li.tradeid}}</td>
    	<td class="cz">{{$li.email}}<br>{{$li.paypalmail}}</td>
   
  </tr>
   
{{/foreach}}
</tbody>

</table>
  <div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
</div>
</div>

  
  <!-- 模态框（Modal）显示订单商品信息 -->
  <form  method="post">
  <div class="modal fade" id="showorder" tabindex="-1" role="dialog" aria-labelledby="sshoworder" aria-hidden="true">
    <div class="modal-dialog" style="width:740px;">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" 
               aria-hidden="true">× </button>
          <h4 class="modal-title" id="sshoworderSN">   </h4>
        </div>
        <div class="modal-body">
         <table cellpadding="0" cellspacing="0" border="0" class="stdtable" style="table-layout: fixed;">
          <tr class="lbbt"><td width="15%" bgcolor="#FEFFF1">商品编号</td><td bgcolor="#FEFFF1" width="20%">商品名称</td><td bgcolor="#FEFFF1">数量</td><td bgcolor="#FEFFF1">价格</td><td bgcolor="#FEFFF1">成本价</td><td bgcolor="#FEFFF1">总价</td><td bgcolor="#FEFFF1">库存</td><td bgcolor="#FEFFF1">仓库</td><td bgcolor="#FEFFF1">仓位</td></tr>
          <tbody id="showorderlistdata"></tbody>
          </table>
          <div class="modal-footer">
           <button type="button" class="btn btn-default" onClick="showordersellsubtotal()"> 小计 </button>
            <button type="button" class="btn btn-default" 
               data-dismiss="modal"> 关闭 </button>
          </div>
        </div>
        <!-- /.modal-content --> 
      </div>
      <!-- /.modal-dialog --> 
    </div>
  </div>
  <!-- /.modal -->
  
  </form>
  
  <!-- 模态框（Modal）交运内容 -->
<form action="/order/ajaxbutton?op=saveexpress"  method="post" name="attributeform" id="attributeform" target="_blank">
<input type="hidden" name="type" id="type">
  <div class="modal fade" id="expressform" tabindex="-1" role="dialog" aria-labelledby="sexpressform" aria-hidden="true">
    <div class="modal-dialog" style="width:740px;">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" 
               aria-hidden="true">× </button>
          <h4 class="modal-title" id="sprintform"> 待交运订单编号  </h4>
        </div>
        <div class="modal-body">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="100">订单号： </td>
              <td align="left"><textarea name="orderlist" id="orderlistst" cols="10" rows="10"></textarea></td>
            </tr>
          
            <!-- <tr>
              <td>取消交运： </td>
              <td align="left"><input name="isclenr" type="checkbox" value="1">（已经交运成功的订单，想取消交运打勾）</td>
            </tr>-->
          </table>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" 
               data-dismiss="modal"> 关闭 </button>
            <button type="button" class="btn btn-primary"  onclick="onstsubmit()"> 提交 </button>
          </div>
        </div>
        <!-- /.modal-content --> 
      </div>
      <!-- /.modal-dialog --> 
    </div>
  </div>
 </form>
  <!-- /.modal -->
</body>
</html>